package cn.org.rookie.mybatismapper.sql.condition;

import cn.org.rookie.mybatismapper.sql.SingleCondition;

public class Like extends SingleCondition {

    @Override
    public String getTerm() {
        return "LIKE";
    }

    @Override
    public String render() {
        return columnName + " " + getTerm() + " '%" + getPrefix() + "{wrapper.params." + columnName + "}%'";
    }
}
